Slides for the RStudio Tips and Tricks Series are available

https://jeremy-allen.github.io/rstudio-tps/





library(palmerpenguins)
library(tidyverse)
library(janitor)
library(here)

Adjusting Global Options in the RStudio IDE

Pro tip: cmd+, to access global options

rearrange panels

change theme

Show chunk output in console

default R version &

don’t save workspace data

set repo for RStudio Public Package Manager

Pro tip: If you are on a Linux server, see what operating system you are on by running this in your console:
system("lsb_release -a")
Then go to RStudio Public Package Manager

allow scroll past end of doc & rainbow parentheses

shift+cmd+p then do anything

Use shift+cmd+p to access the command palette and:

  • Toggle Memory Usage Display in Environment Pane
  • Syntax highlighting in console output
  • Knit Current Document
  • Highlight Selected Line

adjust the code chunk options at the top of this file to hide code and re-knit

Expand the outliner

Pro tip: Navigate your document with the outliner
also ctl+shift+o



Outline is also down here


Code folding

Go back up to the line “## set repo for RStudio Public Package Manager”
Click the little triangle next to the line number


Command History in the console

pro tip: type a couple of letters then cmd+up for visual of matches or just up for last command

 

Open File in New Column!

Pro tip: great for Shiny apps when you have ui, sever, and css files


git in the IDE

Pro tip: cmd+a to select all

In the git tab, click once on the row of the top item.
Then, cmd+a to select them all. Then, check one box to check them all.


Pro tip: revert


Save, Commit, and Push, then